//
//  IASubjectItem.m
//  VoiceClass
//
//  Created by caoxiaobo on 2017/12/2.
//  Copyright © 2017年 YRX. All rights reserved.
//

#import "IASubjectItem.h"

@implementation IASubjectAnswerResult

@end

@implementation IASubjectItem

+ (instancetype)subjectItemWithDictionary:(NSDictionary *)dictionary {
    return [[self alloc] initWithDictionary:dictionary];
}

- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (!self) {
        return nil;
    }
    
    _question = dictionary[@"question"];
    _answer = dictionary[@"answer"];
    _subjectName = dictionary[@"subjectName"];
    
    return self;
}

@end
